package com.eric.domain.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author eric.deng
 * @since 2025-03-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("common_materials")
public class CommonMaterials implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Integer id;

    private String materialName;

    @Column("material_specifications")
    private String materialSpecifications;

    private Double unitPrice;

    private String createTime;
    @Column(value = "update_time",onUpdateValue = "datetime('now', 'localtime')")
    private String updateTime;
    @Column(isLogicDelete = true)
    private Integer isDeleted;

    @Column(version = true)
    private Integer version;

    private String description;

    private String unitName;

}
